package dancespeedymodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceActivitiesStarPointsPrizeLog 星光值活动奖品记录
type DanceActivitiesStarPointsPrizeLog struct {
	Id                    int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	UserId                string         `json:"userId" gorm:"column:user_id;type:varchar(256);not null;default:'';comment:用户id"`
	UserNickname          string         `json:"userNickname" gorm:"column:user_nickname;type:varchar(256);not null;default:'';comment:用户名字"`
	UserAvatar            string         `json:"userAvatar" gorm:"column:user_avatar;type:varchar(256);not null;default:'';comment:用户头像"`
	ActivitiesId          int64          `json:"activitiesId" gorm:"column:activities_id;type:bigint;default:0;not null;comment:活动id"`
	ActivitiesConditionId int64          `json:"conditionId" gorm:"column:condition_id;type:bigint;default:0;not null;comment:活动条件id"`
	Score                 int64          `json:"score" gorm:"column:score;type:bigint;default:0;not null;comment:星光值"`
	EffectTime            int64          `json:"effectTime" gorm:"column:effect_time;type:bigint;default:0;not null;comment:时效"`
	CreatedId             int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"`
	ElementNo             int64          `json:"elementNo" gorm:"column:element_no;type:bigint;default:0;not null;comment:奖品编号"`
	ElementNum            int64          `json:"elementNum" gorm:"column:element_num;type:bigint;default:0;not null;comment:奖品数量"`
	CreatedAt             time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt             time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt             gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
